<template>
	<div></div>
</template>
<script setup >
import {onMounted,ref} from 'vue'
import {checkToken} from '@/service'
defineOptions({ name: 'CheckToken' });
const refreshLock = ref(false);
const refreshTime = ref();

onMounted(() => {
	refreshToken();
});

const refreshToken = () => {
	refreshTime.value = setInterval(() => {
		checkToken(refreshTime.value, refreshLock.value);
	}, 60000);
};
</script>
